
students = []

with open('data.txt', 'r', encoding='utf-8') as f:
    line = f.readline()
    # print(line)

    # t用来放一条学生信息
    # t = []

    # 提取字符串line的姓名、年龄和性别信息并放到t中
    tokens = line.split(' ')  # 字符串分割
    # print(tokens)

    students.append(tokens)


    # students.append(t)
    # students.append(line)


print(students)


